using System;
using System.IO;
using System.Reflection;
using System.Resources;
using OSC.Base;
using OSC.Foursquare.Properties;

namespace OSC.Foursquare
{
    public class FoursquareOSCProvider: OSCProviderBase
    {
        public override string Version
        {
            get { return "1"; }
        }

        public override string[] DefaultSiteUrls
        {
            get {return new []{"http://www.foursquare.com"}; }
        }

        public override byte[] SocialNetworkIcon
        {
            get
            {
                var img = Resources.foursquare;
                MemoryStream imgMemoryStream = new MemoryStream();
                img.Save(imgMemoryStream, System.Drawing.Imaging.ImageFormat.Jpeg);
                byte[] imgByteArray = imgMemoryStream.GetBuffer();
                return imgByteArray;
            }
        }

        public override string SocialNetworkName
        {
            get { return "Foursquare"; }
        }

        public override Guid SocialNetworkGuid
        {
            get { return new Guid("3B3252D9-B9D7-482C-A20E-7592A4B538C1"); }
        }

        public override ISocialConnector CreateSession()
        {
            throw new NotImplementedException();
        }
    }
}